//
//  UIView+EJFrame.h
//  EJPhotoBrowser
//
//  Created by 刘爽 on 2020/5/30.
//  Copyright © 2020 LiuShuang. All rights reserved.
//

#import <UIKit/UIKit.h>

// main screen's width (portrait)
#ifndef kScreenWidth
#define kScreenWidth [UIView screenWidth]
#endif

// main screen's height (portrait)
#ifndef kScreenHeight
#define kScreenHeight [UIView screenHeight]
#endif

NS_ASSUME_NONNULL_BEGIN

@interface UIView (EJFrame)

@property (nonatomic) CGFloat ls_left;        ///< Shortcut for frame.origin.x.
@property (nonatomic) CGFloat ls_top;         ///< Shortcut for frame.origin.y
@property (nonatomic) CGFloat ls_right;       ///< Shortcut for frame.origin.x + frame.size.width
@property (nonatomic) CGFloat ls_bottom;      ///< Shortcut for frame.origin.y + frame.size.height
@property (nonatomic) CGFloat ls_width;       ///< Shortcut for frame.size.width.
@property (nonatomic) CGFloat ls_height;      ///< Shortcut for frame.size.height.
@property (nonatomic) CGFloat ls_centerX;     ///< Shortcut for center.x
@property (nonatomic) CGFloat ls_centerY;     ///< Shortcut for center.y
@property (nonatomic) CGPoint ls_origin;      ///< Shortcut for frame.origin.
@property (nonatomic) CGSize  ls_size;        ///< Shortcut for frame.size.

+ (CGFloat)screenWidth;

+ (CGFloat)screenHeight;

@end

NS_ASSUME_NONNULL_END
